﻿@namespace AntDesign.Internal
@inherits AntDomComponentBase

<ButtonGroup Class="ant-dropdown-button" Style="@(Dropdown.Block ? $"display:flex; flex-direction:row;{Style}": Style)">
    @if (Dropdown.ButtonsRender != null)
    {
        @Dropdown.ButtonsRender(LeftButton, RightButton)
    }
    else
    {
        @LeftButton
        @RightButton
    }
</ButtonGroup>

@code {
    [CascadingParameter]
    public Dropdown Dropdown { get; set; }

    [Parameter]
    public RenderFragment LeftButton { get; set; }

    [Parameter]
    public RenderFragment RightButton { get; set; }
}